import request from '@/utils/request'

// 查询家庭积分流水明细列表
export function listFamilyScoreLog(query) {
  return request({
    url: '/organization/familyScoreLog/list',
    method: 'get',
    params: query
  })
}

// 查询家庭积分流水明细详细
export function getFamilyScoreLog(id) {
  return request({
    url: '/organization/familyScoreLog/' + id,
    method: 'get'
  })
}

// 新增家庭积分流水明细
export function addFamilyScoreLog(data) {
  return request({
    url: '/organization/familyScoreLog',
    method: 'post',
    data: data
  })
}

// 修改家庭积分流水明细
export function updateFamilyScoreLog(data) {
  return request({
    url: '/organization/familyScoreLog',
    method: 'put',
    data: data
  })
}

// 删除家庭积分流水明细
export function delFamilyScoreLog(id) {
  return request({
    url: '/organization/familyScoreLog/' + id,
    method: 'delete'
  })
}
//社区积分
export function communityScore(data) {
    return request({
        url: '/organization/familyScoreLog/communityScore',
        method: 'post',
        data: data
    })
}
